﻿using System;
using Business.Entity.Contabil.Pessoa.SubClass.Usuario.ClassesRelacionadas;
using Business.Validation;
using DevExpress.XtraEditors;

namespace Business.Forms
{
    public interface IForm
    {
        Object Save();
        
        
        void Update(Object entity);

        bool Delete(object entity);

        object CurrentObject { get; set; }

        PermissaoForm Permissao { get;}

        EntityValidationResult Validate();

        void Reload();
        void Cancel();
        Object New();
        XtraForm Form { get; }
        FormState FormState { get; set; }
    }

    public enum FormState
    {
        None,
        Inserting,
        Updating
    }
}
